package org.jsrml.core.base.qo;

import org.jsrml.common.persistence.BaseQO;
import org.jsrml.common.persistence.query.QueryCondition;
import org.jsrml.common.persistence.query.QueryConditionType;
import org.jsrml.common.persistence.query.QueryConfig;

@QueryConfig(daoBeanId = "provinceService")
@SuppressWarnings("serial")
public class ProvinceQO extends BaseQO<String> {

	@QueryCondition(name = "country", type = QueryConditionType.FETCH_EAGER)
	private Boolean fetchCountry;

	@QueryCondition(name = "country", type = QueryConditionType.LEFT_JOIN)
	private ProvinceQO countryQO;

	@QueryCondition(name = "name", type = QueryConditionType.LIKE_ANYWHERE)
	private String name;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Boolean getFetchCountry() {
		return fetchCountry;
	}

	public void setFetchCountry(Boolean fetchCountry) {
		this.fetchCountry = fetchCountry;
	}

	public ProvinceQO getCountryQO() {
		return countryQO;
	}

	public void setCountryQO(ProvinceQO countryQO) {
		this.countryQO = countryQO;
	}

}
